package com.chenyue.cm.common.constant;

/**
 * @author libingxing
 */

public enum ErrorCode {

    /**
     * 注册
     */
    MOBILE_UN_REGISTER(500, "用户不存在"),

    MOBILE_REGISTER_ALREADY(500, "手机号已注册"),

    NO_VERIFY_CODE(500, "未获取验证码"),

    VERIFY_CODE_WRONG(500, "验证码错误"),

    PHONE_HAS_BEEN_BIND(333, "该手机号已被绑定"),

    WX_HAS_BEEN_BIND(500, "该微信号已被绑定"),

    QQ_HAS_BEEN_BIND(500, "该QQ号已被绑定"),

    INSERT_ERROR(500, "新增失败"),

    UPDATE_ERROR(500, "更新失败"),

    DELETE_ERROR(500, "删除失败"),

    UPLOAD_FILE_TYPE_ERROR(500, "文件类型错误"),

    UPLOAD_FILE_MAX_SIZE_LIMIT(500, "文件大小不符"),

    UPLOAD_FILE_EMPTY(500, "文件不能为空"),

    BALANCE(5001,"很抱歉，您的积分余额不足，立即参塞获得积分！"),

    INSUFFICIENT(500,"商品库存不足,请等待管理员补货。"),

    ;

    int code;

    String msg;

    ErrorCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
